package com.laoniu.utils;

import java.time.LocalDateTime;
import java.time.ZoneOffset;

public class LocalDateTimeUtils {

    public static Long localDateTimeToLong(LocalDateTime time){
        return time.toInstant(ZoneOffset.of("+8")).toEpochMilli();
    }
}
